﻿using Inovout.Web.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Inovout.Kuajing.Exports.Console.Web.Controllers
{
    [AllowAnonymous]
    public class AccountController : Controller
    {
        public ActionResult Login(string provider, string returnUrl, bool? skipBind)
        {
            return SignIn(provider, returnUrl, skipBind);
        }


         public ActionResult ExtensionalSignIn(string provider, string returnUrl)
         {
             return new AccountAuthenticationResult(provider, Url.Action("ExtensionalSignInCallback", new { ReturnUrl = returnUrl }));
         }


         //public ActionResult ExtensionalSignInCallback(string returnUrl, bool? skipBind)
         //{
         //   // AuthenticationResult authenticationResult = OAuthWebSecurity.VerifyAuthentication(Url.Action("ExtensionalSignInCallback", new { ReturnUrl = returnUrl }));
         //}
        
	}


}